const chalk = require('chalk')
const moment = require('moment')

const info = (val) => {
  console.log(chalk.blue(`[${moment().format('HH:mm:ss')}] ${val}`))
}

const success = (val) => {
  console.log(chalk.green(`[${moment().format('HH:mm:ss')}] ${val}`))
}

const error = (val) => {
  console.log(chalk.red(`[${moment().format('HH:mm:ss')}] ${val}`))
}

module.exports = {
  info,
  success,
  error
}